package com.example.weektwo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.weektwo.dailysupplies.one.DailyActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    Button starBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        starBtn=findViewById(R.id.btn_star);
        starBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_star:
                Intent intent = new Intent(this, DailyActivity.class);
                startActivity(intent);
                break;
        }
    }
}
